package com.niit.web.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.niit.bean.Classify;
import com.niit.service.ClassifyService;
import com.niit.service.impl.ClassifyServiceImpl;

@WebServlet("/ShowClassify4AddQuesController")
public class ShowClassify4AddQuesController extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ClassifyService cs = new ClassifyServiceImpl();
		List<Classify> list = cs.findAll();
		request.setAttribute("classify", list);
		request.getRequestDispatcher("/jsp/user/plaza/questionedit.jsp").forward(request, response);
	}

}
